package com.dongdongshop.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class SkipController {

    //跳转首页
    @RequestMapping("index")
    public String cooperation(){
        return "cooperation";
    }

    //跳转登录页面 当请求拦截的话,让他跳转到登录页面
    @RequestMapping("toLogin")
    public String toLogin(){
        return "shoplogin";
    }

    //跳转注册页面
    @RequestMapping("register")
    public String register(){
        return "register";
    }

    //跳转注册协议页面
    @RequestMapping("sampling")
     public String sampling(){
        return "sampling";
    }

    //登录成功跳转页面
    @RequestMapping("adminIndex")
    public String adminIndex(){
        return "admin/index";
    }

    //商家管理后台首页展示
    @RequestMapping("home")
    public String home(){
        return "admin/home";
    }

    //跳转商家管理后台修改资料页面
    @RequestMapping("seller")
    public String seller(){
        return "admin/seller";
    }
    //跳转商家管理后台修改密码页面
    @RequestMapping("password")
    public String password(){
        return "admin/password";
    }

    //跳转新增商品页面
    @RequestMapping("goods_edit")
    public String goods_edit(){
        return  "admin/goods_edit";
    }

    //跳转商品管理页面
    @RequestMapping("goods")
    public String goods(){
        return "admin/goods";
    }

    //跳转订单管理页面
    @RequestMapping("orderAdmin")
    public String orderAdmin(){
        return "/admin/order-admin";
    }
}
